/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const authManagerRouter = {
  path: '/authManager',
  component: Layout,
  redirect: '/authManager/user',
  meta: {
    topBarTitle: 'AuthSystem',
    title: '权限管理',
    icon: 'lock'
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/authManager/user'),
      name: 'User',
      meta: { title: '用户', icon: 'user', topBarTitle: 'AuthSystem', roles: ['AbpIdentity.Users'] }
    },
    {
      path: 'role',
      component: () => import('@/views/authManager/role'),
      name: 'Role',
      meta: { title: '角色', icon: 'peoples', topBarTitle: 'AuthSystem', roles: ['AbpIdentity.Roles'] }
    },
    {
      path: 'organization',
      component: () => import('@/views/organization-unit/index'),
      name: 'organization',
      meta: { title: '组织机构', icon: 'tree', topBarTitle: 'AuthSystem', roles: ['AbpIdentity.OrganizationUnits'] }
    },
    {
      path: 'tenants',
      component: () => import('@/views/tenants/list'),
      name: 'Tenants',
      meta: { title: '租户', icon: '租户管理', topBarTitle: 'AuthSystem', roles: ['AbpTenantManagement.Tenants'] }
    },
    {
      hidden: true,
      path: 'change-password-verification-code',
      component: () => import('@/views/change-password-verification-code'),
      name: 'ChangePasswordVerificationCode',
      meta: { title: '修改密码', topBarTitle: 'AuthSystem' }
    }
  ]
}
export default authManagerRouter
